
[stepper_y]
step_pin:                       PB20
dir_pin:                        PB19
enable_pin:                     !PC17
microsteps:                     256         # ?
#step_distance:                  0.0125
rotation_distance:              38.5        # ?
full_steps_per_rotation:        200         # for 0.9° motors - 400
endstop_pin:                    ^PC6        # Y-MAX - PC6; Y-MIN - PA15
position_endstop:               388         # !!!
position_max:                   388         # !!!
position_min:                   0           # ?
homing_speed:                   50
homing_retract_dist:            5
second_homing_speed:            5

[tmc2130 stepper_y]
cs_pin:                         PA0
#spi_speed:                      100000
#spi_bus:                        spi0
interpolate:                    False
run_current:                    0.85        # Imax * squart(2) * 80%
hold_current:                   0.425       # ~~ run_current/2
sense_resistor:                 0.110
stealthchop_threshold:          999999
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 0
#driver_TBL: 1
#driver_TOFF: 4
#driver_HEND: 7
#driver_HSTRT: 0
#driver_PWM_AUTOSCALE: True
#driver_PWM_FREQ: 1
#driver_PWM_GRAD: 4
#driver_PWM_AMPL: 128
driver_SGT:                     26          # MAX sensitive 17; MIN sensitive 30
#diag0_pin:
#diag1_pin:                      ^!PC6

